import MyRequest from '@/utils/request/index'

class Home {
  brandList(limit = 10) {
    return MyRequest.get({
      url: '/home/brand',
      params: { limit }
    })
  }
  bannerList() {
    return MyRequest.get({
      url: '/home/banner'
    })
  }
  newList() {
    return MyRequest.get({
      url: '/home/new'
    })
  }
  hotList() {
    return MyRequest.get({
      url: '/home/hot'
    })
  }
  goodsList() {
    return MyRequest.get({
      url: '/home/goods'
    })
  }
  specialList() {
    return MyRequest.get({
      url: '/home/special'
    })
  }
}

export default new Home()
